php error - Mailing list pgsql-general

From Mike C
Subject php error
Date
Msg-id a05100e02b785477a3408@[139.80.76.58]
Whole thread Raw
Responses Re: php error  (Ryan Mahoney <ryan@paymentalliance.net>)
List pgsql-general
Hello,

Err message within a browser(http://its-macman.otago.ac.nz/~mike/index.php) =

Fatal error: Call to undefined function: pg_connect() in /Users/mike/Sites/index.php on line 2

Actual code in php file =

<?
$connection = pg_connect("host=its-macman.otago.ac.nz dbname=ontheweb user=postgres password=1g5MeNow");
if(!$connection) {
echo "Could not make a connection!";
exit;
}

I can't see whats wrong here (yes there is more code in the real doc, but this should not be giving an err on line 2)??

Regards
Mike
-- 

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: postgres deadlocks
Next
From: Ryan Mahoney
Date:
Subject: Re: php error